<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="./js/jquery-2.1.0.js"></script>
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/Global.js"></script>
    <style>
        .wrap {
            padding: 20px;
            width: 100%;
            overflow: auto;
            box-sizing: border-box;
            min-height: 600px;
        }

        ul {
            width: 100%;
        }

        ul li {
            width: 25%;
            float: left;
            height: 36px;
            line-height: 36px;
            /* background: #ccc; */
            text-align: center;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-top: 0px;
            cursor: pointer;
        }

        ul li:first-of-type {
            border: 1px solid #ccc;
        }

        ul li:nth-of-type(2) {
            border: 1px solid #ccc;
            border-left: 0px;

        }

        ul li:nth-of-type(3) {
            border: 1px solid #ccc;
            border-left: 0px;

        }

        ul li:nth-of-type(4) {
            border: 1px solid #ccc;
            border-left: 0px;

        }

        .winbody {
            width: 720px;
            padding: 10px;
        }

        .carlist {
            width: 120px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            font-size: 14px;
            display: inline-block;
        }

        .tabs {
            /* width: 900px; */
        }

        .tabs a {
            width: 120px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            font-size: 14px;
            display: inline-block;
        }

        .select {
            text-align: center;
            margin: 10px;
        }

        .layui-input {
            width: 140px;
            display: inline-block;
        }
        .wrap {
            padding: 20px;
        }

        .select {
            height: 40px;
            padding: 20px 0;
            border-bottom: 1px solid #ccc;
            text-align: center;
        }

        .search {
            width: 200px;
            height: 38px;
            margin: 0 auto;
            display: inline-block;
            padding-top: 1px;

        }

        .layui-input {
            width: 150px;
        }

        .btn {
            display: inline-block;

        }
        .select {
            height: 40px;
            /* border-bottom: 1px solid #ccc; */
            text-align: center;
        }

        .search {
            width: 200px;
            height: 38px;
            margin: 0 auto;
            display: inline-block;
            padding-top: 1px;

        }

        table .layui-input {
            border: 0px;
            padding: 0;
            height: 100%;
            width: 100%;
            text-align: center;
        }

        .btn {
            display: inline-block;

        }

        .layui-table td {
            padding: 0px;
            height: 30px;
            line-height: 0px;
            text-align: center;
        }

        .layui-table td {
            margin: 0px;
        }

        .layui-form-item {
            margin: 0px;
            width: 100%;
            height: 100%;
        }

        .layui-form-item .layui-input-inline {
            width: 100%;
            margin: 0px !important;
            height: 100%;
        }

        .layui-select-title {
            height: 100%;
        }

        h3 {
            text-align: center;
        }
        .layui-form {
            display: inline-block;
            margin: 0;
            padding: 0;
            height: 24px;
        }

        .search {
            width: 200px;
            height: 38px;
            margin: 0 auto;
            display: inline-block;
            padding-top: 1px;

        }

        .search .layui-input {
            width: 200px;
        }
        .layui-form {
            display: inline-block;
            margin: 0;
            padding: 0;
            height: 24px;
        }

        .search {
            width: 200px;
            height: 38px;
            margin: 0 auto;
            display: inline-block;
            padding-top: 1px;

        }

        .search .layui-input {
            width: 200px;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div>
            <div class="layui-form">
                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <select lay-filter="datesel" name="quiz2">
                            <option value="全部车辆">全部轮胎</option>
                            <option value="在车轮胎">在车轮胎</option>
                            <option value="库存轮胎">库存轮胎</option>
                            <option value="报废轮胎">报废轮胎</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="btn">
                <button class="layui-btn layui-btn-normal">查询</button>
            </div>
        </div>
        <table class="layui-table">
            <thead>
                <tr>
                    <th rowspan="2">
                        序号
                    </th>
                    <th rowspan="2">
                        客户名称
                    </th>
                    <th rowspan="2">
                        品牌
                    </th>
                    <th rowspan="2">
                        规格
                    </th>
                    <th rowspan="2">
                        型号
                    </th>
                    <th rowspan="2">
                        产地
                    </th>
                    <th rowspan="2">
                        车型
                    </th>
                    <th rowspan="2">
                        胎位
                    </th>
                    <th rowspan="2">
                        生产编号
                    </th>
                    <th rowspan="2">
                        DOT号
                    </th>
                    <th>
                        总里程
                    </th>
                    <th>
                        预计里程
                    </th>
                    <th>
                        费用总计
                    </th>

                    <th>
                        元/千公里
                    </th>
                    <th colspan="4">
                        新胎
                    </th>
                    <th colspan="4">
                        翻新1
                    </th>
                    <th colspan="4">
                        翻新2
                    </th>
                    <th colspan="4">
                        翻新3
                    </th>
                </tr>
                <tr>
                    <th>0</th>
                    <th>0</th>
                    <th>0</th>
                    <th>0</th>
                    <th>运营里程</th>
                    <th>预计里程</th>
                    <th>费用合计</th>
                    <th>元/千公里</th>
                    <th>运营里程</th>
                    <th>预计里程</th>
                    <th>费用合计</th>
                    <th>元/千公里</th>
                    <th>运营里程</th>
                    <th>预计里程</th>
                    <th>费用合计</th>
                    <th>元/千公里</th>
                    <th>运营里程</th>
                    <th>预计里程</th>
                    <th>费用合计</th>
                    <th>元/千公里</th>

                </tr>
            </thead>
            <tbody class="list">

            </tbody>
        </table>
    </div>
</body>
<script>
    layui.use('form', function () {
        var form = layui.form
    })
    $.ajax({
        url: `${API}/erpTireArchivesWork/getTireState?custId=1`,
        type: 'get',
        success: function (res) {
            let arr = res.data
            let str = ''
            $.each(arr, function (i, n) {
                str +=
                    `<tr>
                    <td>
                        ${i+1}
                    </td>
                    <td>
                        
                    </td>
                    <td>
                        ${n.parameters.arand}
                    </td>
                    <td>
                            ${n.parameters.norms}
                    </td>
                    <td>
                            ${n.parameters.model}   
                    </td>
                    <td>
                            ${n.parameters.address}   
                    </td>
                    <td>
                           0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0 
                    </td>
                    <td>
                            0 
                    </td>
                    <td>
                        ${n.price}
                    </td>

                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            ${n.priceNew}
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0 
                    </td>
                    <td>
                            ${n.price1}
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            ${n.price2}
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                            0
                    </td>
                    <td>
                        ${n.price3}
                    </td>
                    <td>
                            0
                    </td>
                </tr>`
            })
            $('.list').html(str)
        }
    })
</script>